package org.ly.uap.client.validation;

import java.net.URL;

import org.ly.uap.client.util.CommonUtils;

public abstract class AbstractCasProtocolUrlBasedTicketValidator extends AbstractUrlBasedTicketValidator {
    protected AbstractCasProtocolUrlBasedTicketValidator(String casServerUrlPrefix) {
        super(casServerUrlPrefix);
    }

    protected final void setDisableXmlSchemaValidation(boolean disable) {
    }

    protected final String retrieveResponseFromServer(URL validationUrl, String ticket) {
        if (this.hostnameVerifier != null) {
            return CommonUtils.getResponseFromServer(validationUrl, this.hostnameVerifier, getEncoding());
        }
        return CommonUtils.getResponseFromServer(validationUrl, getEncoding());
    }
}
